#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost_derive::Message)]
pub struct GetKeyProvisioningRoleResponse {
    #[prost(enumeration = "KeyProvisioningRole", tag = "1")]
    pub role: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost_derive::Message)]
pub struct GetGroupKeysResponse {
    #[prost(message, optional, tag = "1")]
    pub group_keys: ::core::option::Option<
        super::super::key_provisioning::v1::GroupKeys,
    >,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost_derive::Enumeration)]
#[repr(i32)]
pub enum KeyProvisioningRole {
    Unspecified = 0,
    Leader = 1,
    Follower = 2,
}
impl KeyProvisioningRole {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            KeyProvisioningRole::Unspecified => "KEY_PROVISIONING_ROLE_UNSPECIFIED",
            KeyProvisioningRole::Leader => "LEADER",
            KeyProvisioningRole::Follower => "FOLLOWER",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "KEY_PROVISIONING_ROLE_UNSPECIFIED" => Some(Self::Unspecified),
            "LEADER" => Some(Self::Leader),
            "FOLLOWER" => Some(Self::Follower),
            _ => None,
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost_derive::Message)]
pub struct DeriveSessionKeysRequest {
    #[prost(enumeration = "KeyOrigin", tag = "1")]
    pub key_origin: i32,
    /// Ephemeral Diffie-Hellman client public key that is needed to derive session
    /// keys.
    #[prost(bytes = "vec", tag = "2")]
    pub serialized_encapsulated_public_key: ::prost::alloc::vec::Vec<u8>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost_derive::Message)]
pub struct DeriveSessionKeysResponse {
    /// Session keys for decrypting client requests and encrypting enclave
    /// responses.
    #[prost(message, optional, tag = "1")]
    pub session_keys: ::core::option::Option<super::super::crypto::v1::SessionKeys>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost_derive::Message)]
pub struct SignRequest {
    #[prost(enumeration = "KeyOrigin", tag = "1")]
    pub key_origin: i32,
    #[prost(bytes = "vec", tag = "2")]
    pub message: ::prost::alloc::vec::Vec<u8>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost_derive::Message)]
pub struct SignResponse {
    #[prost(message, optional, tag = "1")]
    pub signature: ::core::option::Option<super::super::crypto::v1::Signature>,
}
/// Choice between a key generated by the enclave instance and the key
/// distributed to the enclave group with Key Provisioning.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost_derive::Enumeration)]
#[repr(i32)]
pub enum KeyOrigin {
    Unspecified = 0,
    Instance = 1,
    Group = 2,
}
impl KeyOrigin {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            KeyOrigin::Unspecified => "KEY_ORIGIN_UNSPECIFIED",
            KeyOrigin::Instance => "INSTANCE",
            KeyOrigin::Group => "GROUP",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "KEY_ORIGIN_UNSPECIFIED" => Some(Self::Unspecified),
            "INSTANCE" => Some(Self::Instance),
            "GROUP" => Some(Self::Group),
            _ => None,
        }
    }
}
